package com.mbigger.netty.ch4;

import lombok.Data;
import lombok.EqualsAndHashCode;

import static com.mbigger.netty.ch4.Command.LOGIN_REQUEST;

@Data
@EqualsAndHashCode(callSuper = false)
public class LoginRequestPacket extends Packet {
    private Integer userId;

    private String username;

    private String password;

    @Override
    public Byte getCommand() {
        return LOGIN_REQUEST;
    }
}
